package com.kcs.fxmargin.action.form;

import java.util.Calendar;
import java.util.List;
import java.util.Locale;

import com.kcs.fxmargin.bo.ListOfForwardContractBO;

public class ListOfForwardContractActionForm extends FXActionForm{
	/**
	 * SRC010
	 */
	private static final long serialVersionUID = 1L;
	private String inCifNo;
	private String inCustomerName;
	private String inAsOfDate;
	private String dealNo;
	private String daysToMat;
	private String matDate;
	private String clientBuySell;
	private String ccyPair;
	private String fxRate;
	private String amt1;
	private String amt2;
	private String imRequired;
	private String mtmRate;
	private String unrealizedPL;
	private String dealStatus;
	private String dealType;
	
	private List<ListOfForwardContractBO> forwardContractList;
	
	private String tranCode;
	
	public ListOfForwardContractActionForm(){
		resetForm();
	}
	
	public void resetForm(){
		inCifNo = "";
		inCustomerName = "";
		inAsOfDate = getStringCurrentDate();
		dealNo = "";
		daysToMat = "";
		matDate = "";
		clientBuySell = "";
		ccyPair = "";
		fxRate = "";
		amt1 = "";
		amt2 = "";
		imRequired = "";
		mtmRate = "";
		unrealizedPL = "";
		dealStatus = "";
		dealType = "";
		
		forwardContractList = null;
		
		tranCode = "";
	}
	
	private String getStringCurrentDate(){
		Calendar c = null;
		String result = "";
		
		try{
			c = Calendar.getInstance(new Locale("us","US"));
			result = c.get(Calendar.DATE)+"/"+(c.get(Calendar.MONTH)+1)+"/"+c.get(Calendar.YEAR);
			
		}catch(Exception e){
			e.printStackTrace();
		}
		
		return result;
	}

	public String getInCifNo() {
		return inCifNo;
	}

	public void setInCifNo(String inCifNo) {
		this.inCifNo = inCifNo;
	}

	public String getInCustomerName() {
		return inCustomerName;
	}

	public void setInCustomerName(String inCustomerName) {
		this.inCustomerName = inCustomerName;
	}

	public String getInAsOfDate() {
		return inAsOfDate;
	}

	public void setInAsOfDate(String inAsOfDate) {
		this.inAsOfDate = inAsOfDate;
	}

	public String getDealNo() {
		return dealNo;
	}

	public void setDealNo(String dealNo) {
		this.dealNo = dealNo;
	}

	public String getDaysToMat() {
		return daysToMat;
	}

	public void setDaysToMat(String daysToMat) {
		this.daysToMat = daysToMat;
	}

	public String getMatDate() {
		return matDate;
	}

	public void setMatDate(String matDate) {
		this.matDate = matDate;
	}

	public String getClientBuySell() {
		return clientBuySell;
	}

	public void setClientBuySell(String clientBuySell) {
		this.clientBuySell = clientBuySell;
	}

	public String getCcyPair() {
		return ccyPair;
	}

	public void setCcyPair(String ccyPair) {
		this.ccyPair = ccyPair;
	}

	public String getFxRate() {
		return fxRate;
	}

	public void setFxRate(String fxRate) {
		this.fxRate = fxRate;
	}

	public String getAmt1() {
		return amt1;
	}

	public void setAmt1(String amt1) {
		this.amt1 = amt1;
	}

	public String getAmt2() {
		return amt2;
	}

	public void setAmt2(String amt2) {
		this.amt2 = amt2;
	}

	public String getImRequired() {
		return imRequired;
	}

	public void setImRequired(String imRequired) {
		this.imRequired = imRequired;
	}

	public String getMtmRate() {
		return mtmRate;
	}

	public void setMtmRate(String mtmRate) {
		this.mtmRate = mtmRate;
	}

	public String getUnrealizedPL() {
		return unrealizedPL;
	}

	public void setUnrealizedPL(String unrealizedPL) {
		this.unrealizedPL = unrealizedPL;
	}

	public String getDealStatus() {
		return dealStatus;
	}

	public void setDealStatus(String dealStatus) {
		this.dealStatus = dealStatus;
	}

	public String getDealType() {
		return dealType;
	}

	public void setDealType(String dealType) {
		this.dealType = dealType;
	}
	
	public List<ListOfForwardContractBO> getForwardContractList() {
		return forwardContractList;
	}

	public void setForwardContractList(
			List<ListOfForwardContractBO> forwardContractList) {
		this.forwardContractList = forwardContractList;
	}

	public String getTranCode() {
		return tranCode;
	}

	public void setTranCode(String tranCode) {
		this.tranCode = tranCode;
	}
	
}
